package homework;

import org.junit.Test;

public class Arrayminvalue {
   @Test
    public void test01(){
    int []arr={25,26,27,28};
    int min=arrayminvalue(arr);
    System.out.println(min);
}
public int arrayminvalue(int[]arr) {
    int min = arr[0];
    for (int i = 0; i < arr.length; i++) {
        if (arr[i] < arr[0])
            min = arr[i];
    }
    return min;
}
}



